﻿using Microsoft.Phone.Tasks;
using ReferenceTemplate.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace ReferenceTemplate.WindowsPhone.Services
{
    public class LinksService : ILinksService
    {
        public void OpenLink(Models.Link link)
        {
            WebBrowserTask task = new WebBrowserTask();
            task.Uri =new Uri(link.URL);
            task.Show();
        }

        public void CopyLink(Models.Link link)
        {
            Clipboard.SetText(link.URL);
        }
    }
}
